<template>
  <div class="wrap hot-change">
    <div class="hot-title">
      <div>
        <img src="../assets/img/hot.png" alt="" />
        <span>热门兑换</span>
      </div>
      <div class="more">
        <span @click="$router.push('/allgift?did=2')">更多</span>
        <img src="../assets/img/arrow.png" alt="" />
      </div>
    </div>
    <div class="hot-banner">
      <img src="../assets/img/banner.4c6b6225.png" alt="" />
    </div>
    <div class="hot-flex">
      <FineItem v-for="item in fineList" :key="item.id" :data="item"></FineItem>
    </div>
  </div>
</template>

<script>
import { RenmenAPI } from "@/request/api";
import FineItem from "@/components/FineItem.vue";
export default {
  name: "JifenThreeHotChange",

  data() {
    return { fineList: [] };
  },
  components: {
    FineItem,
  },
  // 发送axios请求
  async created() {
    await RenmenAPI().then((res) => {
      //   console.log("res1", res);
      this.fineList = res.data.data.records;
    });
  },
  methods: {},
};
</script>

<style lang="less" scoped>
.hot-title {
  display: flex;
  justify-content: space-between;
  height: 40;
  line-height: 40px;
  padding: 30px 0 18px;
  .more {
    display: flex;
    align-items: center;
    span {
      font-size: 18px;
      font-family: SourceHanSansSC;
      font-weight: 300;
      color: #666666;
      cursor: pointer;
      display: block;
      padding-right: 10px;
    }
    img {
      width: 14px;
      height: 14px;
    }
  }
  span {
    font-size: 30px;
    font-family: SourceHanSansSC;
    font-weight: bold;
    color: #333333;
    padding-left: 15px;
  }
}
.hot-banner {
  margin-bottom: 10px;
}
.hot-flex {
  padding: 20px;
  width: 1500px;
  overflow: hidden;
}
</style>